import 'package:ai/util/CommonUtils.dart';
import 'package:flutter/material.dart';

import '../../config/Config.dart';

class MineUtils {
  static Widget getList(String title,String imageUrl,VoidCallback callBack) {
    return ListTile(
      onTap: callBack,
      contentPadding: EdgeInsets.zero,
      leading: CommonUtils.getImageAsset(imageUrl, width: 32),
      title: Text(title),
      trailing: Icon(
        Icons.arrow_forward_ios_outlined,
        size: 16,
        color: Config.color9,
      ),
    );
  }
}
